#ifndef SETTING_H
#define SETTING_H

#include <QSettings>

#define SETTING Setting::instance()

class Setting : public QSettings {
public:
    static Setting& instance()
    {
        static Setting inst;
        return inst;
    }

    ~Setting();

    QString getAppId();
    void setAppId(const QString& appId);

    QString getSecretKey();
    void setSecretKey(const QString& secretKey);

private:
    Setting(QObject* parent = nullptr);
};

#endif // SETTING_H
